package org.blogwu.learn.threadLearn.class1;

public class MyTest15 extends Thread {

    public MyTest15(String name) {
        super(name);
    }

    @Override
    public void run() {
        while (true) {
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    public static void main(String[] args) {
        MyTest15 myTest15 = new MyTest15("nnn");
        myTest15.start();
        System.out.println(myTest15.getName());
    }
}
